package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HotelFacilitiesMapper;
import com.ruoyi.system.domain.HotelFacilities;
import com.ruoyi.system.service.IHotelFacilitiesService;

/**
 * 酒店设施Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-10
 */
@Service
public class HotelFacilitiesServiceImpl implements IHotelFacilitiesService 
{
    @Autowired
    private HotelFacilitiesMapper hotelFacilitiesMapper;

    /**
     * 查询酒店设施
     * 
     * @param id 酒店设施主键
     * @return 酒店设施
     */
    @Override
    public HotelFacilities selectHotelFacilitiesById(Long id)
    {
        return hotelFacilitiesMapper.selectHotelFacilitiesById(id);
    }

    /**
     * 查询酒店设施列表
     * 
     * @param hotelFacilities 酒店设施
     * @return 酒店设施
     */
    @Override
    public List<HotelFacilities> selectHotelFacilitiesList(HotelFacilities hotelFacilities)
    {
        return hotelFacilitiesMapper.selectHotelFacilitiesList(hotelFacilities);
    }

    /**
     * 新增酒店设施
     * 
     * @param hotelFacilities 酒店设施
     * @return 结果
     */
    @Override
    public int insertHotelFacilities(HotelFacilities hotelFacilities)
    {
        return hotelFacilitiesMapper.insertHotelFacilities(hotelFacilities);
    }

    /**
     * 修改酒店设施
     * 
     * @param hotelFacilities 酒店设施
     * @return 结果
     */
    @Override
    public int updateHotelFacilities(HotelFacilities hotelFacilities)
    {
        return hotelFacilitiesMapper.updateHotelFacilities(hotelFacilities);
    }

    /**
     * 批量删除酒店设施
     * 
     * @param ids 需要删除的酒店设施主键
     * @return 结果
     */
    @Override
    public int deleteHotelFacilitiesByIds(Long[] ids)
    {
        return hotelFacilitiesMapper.deleteHotelFacilitiesByIds(ids);
    }

    /**
     * 删除酒店设施信息
     * 
     * @param id 酒店设施主键
     * @return 结果
     */
    @Override
    public int deleteHotelFacilitiesById(Long id)
    {
        return hotelFacilitiesMapper.deleteHotelFacilitiesById(id);
    }
}
